#pragma once
#include <SFML/Graphics.hpp>
#include <SFML\System.hpp>
#include <iostream>
#include <vector>

namespace game
{

class TextBox
{
protected:
	sf::Font * _font;
	sf::Text * _name;
	//sf::Text _desc;
	sf::RectangleShape * _rect;
	bool _hidden;
public:
	void setName(std::string s);
	std::string getName();
	void setPos(sf::Vector2u p);
	sf::Vector2u getPos();
	sf::Vector2u getSize();
	void draw(sf::RenderWindow &p);
	void hide();
	void show();
	
	//TextBox(sf::Text name,sf::Text desc, sf::Vector2u pos, sf::Vector2u size);
	TextBox(std::string name,std::string desc,int size, sf::Vector2u pos, sf::Vector2u rsize);
	~TextBox(void)
	{
		//if (_name)
		delete _name;
		delete _font;
		//if (&_desc)
		//delete & _desc;
		if (_rect)
		delete _rect;
	}
};

}
